package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 商品访问历史实体类
 * @author ShouPeng
 * @since 2024-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mall_goods_visit")
//@ApiModel(value="GoodsVisit对象", description="商品访问历史表")
public class GoodsVisit implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String visitId;

//    @ApiModelProperty(value = "用户ID")
    private String userId;

//    @ApiModelProperty(value = "商品ID")
    private String goodsId;

//    @ApiModelProperty(value = "访问日期")

    private String visitDate;


    @TableField(exist = false)
    private String goodsCover;

    @TableField(exist = false)
    private String goodsPrice;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String goodsDesc;

    // @ApiModelProperty(value = "是否删除")
    private Boolean isDelete;


}
